package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;




import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车辆维修保养表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_maintain")
@ApiModel(value="车辆维修保养表")
public class Maintain extends Model<Maintain> {

        private static final long serialVersionUID = 1L;


        @ApiModelProperty(value="id")
        @TableId(value = "id", type = IdType.UUID)
                private String id;

        @ApiModelProperty(value="车辆id")
        private String carId;

        @ApiModelProperty(value="日期")
        private Date date;

        @ApiModelProperty(value="类型（1-维修 2-保养）")
        private Integer type;

        @ApiModelProperty(value="内容")
        private String content;

        @ApiModelProperty(value="维修点")
        private String maintenancePoint;

        @ApiModelProperty(value="是否删除（1-已删除 2-未删除）")
        private Integer isDeleted;


@Override
protected Serializable pkVal() {
            return this.id;
        }

        }